// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'

import Element from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css'
import './iconfont/iconfont.css'

import i18n from './lang'
//import './mock' // mock数据，打包或对接的时候请注释掉
import './permission'
import './directive'
import 'babel-polyfill'

import './styles/index.scss'

Vue.config.productionTip = false

Vue.use(Element, {
    size: 'small',
    i18n: (key, value) => i18n.t(key, value)
})

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  i18n,
  store,
  components: { App },
  template: '<App/>'
})
